#include<stdio.h>
#include<unistd.h>
#include<sys/stat.h>
#include<sys/types.h>
#include<fcntl.h>
int main(){
   // close(1);
    int fd=open("t2.txt",O_WRONLY|O_CREAT|O_TRUNC,0666);
    dup2(fd,1);
    printf("行啊aZZ");
    sleep(15);
   // write(fd,"aaaaa",5);
    close(fd);
    //tmprocrintf("\nbbb\n");
    return 0;
}
